import type { LoginResult } from '@/types/member'
import { http } from '@/utils/http'

//使用手机号一键登录
//loginCode小程序调用wx.login()获取到的code值，临时登录凭证，code为手机号获取凭证
export const phoneLogin = (loginCode: string, code?: string) => {
  return http<LoginResult>({
    url: '/phoneLogin',
    method: 'GET',
    data: { loginCode, code },
  })
}
